@extends('admin.layouts.base')
@section('title','产品表现数据')
@section('pageHeader','产品表现数据')

@section('content')
    <div class="col-xs-12">
        <div class="box">
            <div class="box-header">
                <h3 class="box-title">{{$title }}日志记录</h3>
            </div>

            <div class="box-footer" style="overflow: hidden">

                <table id="records-table" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th>记录日期</th>
                        <th>渠道名称</th>
                        <th>产品名称</th>
                        <th>申请点击PV</th>
                        <th>申请点击UV</th>
                        <th>安稳申请点击UV</th>
                        <th>现金贷申请点击UV</th>

                    </tr>
                    </thead>
                    <tbody>
                    <?php $index = 1; ?>
                    @foreach($datas as $data)
                        <tr>
                            <td>{{ $index }}</td>
                            <td>{{ $data->create_date }}</td>
                            <td>{{ $title }}</td>
                            <td>{{ $data->product_name }}</td>
                            <td>{{ $data->apply_total }}</td>
                            <td>{{ $data->user_total }}</td>
                            <td>{{ $data-> awuser_total}}</td>
                            <td>{{ $data->xduser_total }}</td>
                        </tr>
                        <?php $index++; ?>
                    @endforeach
                    </tbody>
                </table>

                {{--导出Excel 开始--}}
                <div class="pull-right">

                        <span style="display: inline-block;margin: 20px;">
                            <a href="{{ url('/product/data/excel?tab=' . \App\Http\Controllers\Admin\DataUserController::EXCEL_PRODUCT . '&channel_id=' . $channel) }}">
                                <button type="button" class="btn btn-warning btn-xs">
                                    导出Excel
                                </button>
                            </a>
                        </span>
                </div>
                {{--导出Excel 结束--}}

            </div>
        </div>
    </div>
@endsection